import request from "/utils/request";
export const getList = async () => {
    return await request({
        url:'/papers/getPaperList'
    });
};
export const getpaper = async (id) => {
    return await request({
        url:`/papers/getPaper/${id}`
    });
};


export const submissionW1 = async (question) => {
    return await request({
        url:`/hello/testInvoke1/${question}`
    });
};
export const submissionW2 = async (question) => {
    return await request({
        url:`/hello/testInvoke2/${question}`
    });
};
export const submission = async (data) => {
    return await request({
        url: "/submission/add",
        method:"POST",
        data
    });
};
export const getTypeTitleList = async (type) => {
    return await request({
        url:`/questions/getTypeTitleList/${type}`
    });
};
export const getfindPaperList = async (bankid) => {
    return await request({
        url:`/submission/findPaper/${bankid}`
    });
};
export const submitScore = async (data) => {
    return await request({
        url: "/score/submitScore",
        data
    });
};
export const login = async (data) => {
    return await request({
        url: "/student/wxLogin",
        data
    });
};

